package com.cmc.cloud.cmclink.doc.vo.attachmenttypevo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;

/**
 * 附件类型 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AttachmentTypeBaseVO {

    @Schema(description = "附件类型代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{AttachmentTypeBaseVO.attatchTypeCode.NotBlank}")
    @Length(max = 20, message = "{AttachmentTypeBaseVO.attatchTypeCode.Length}")
    private String attatchTypeCode;

    @Schema(description = "附件类型中文名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{AttachmentTypeBaseVO.attatchTypeCodeCn.NotBlank}")
    @Length(max = 200, message = "{AttachmentTypeBaseVO.attatchTypeCodeCn.Length}")
    private String attatchTypeCodeCn;

    @Schema(description = "附件类型英文名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{AttachmentTypeBaseVO.attatchTypeCodeEn.NotBlank}")
    @Length(max = 200, message = "{AttachmentTypeBaseVO.attatchTypeCodeEn.Length}")
    private String attatchTypeCodeEn;

    @Schema(description = "使用模块")
    @Length(max = 100, message = "{AttachmentTypeBaseVO.useModules.Length}")
    private String useModules;

    @Schema(description = "使用功能点")
    @Length(max = 100, message = "{AttachmentTypeBaseVO.useFunctions.Length}")
    private String useFunctions;

    @Schema(description = "文件id")
    private String fileId;

    @Schema(description = "文件是否必传")
    private Boolean requiredStatus;
}
